package com.scap.dfs.dao;

import java.util.List;

import com.scap.dfs.model.DailyCalFormula;
import com.scap.dfs.model.DailyCalFormulaPK;

public interface DailyCalFormulaDao {
	
	public boolean insert(DailyCalFormula dailyCalFormula);
	
	public boolean update(DailyCalFormula dailyCalFormula);
	
	public boolean delete(DailyCalFormulaPK pk);
	
	public DailyCalFormula findById(DailyCalFormulaPK pk);
	
	public List getListByHospitalCodeOrderByFlowNumber(String hospitalCode);
	
	public List getListPerPage(int amount,int page,String orderByColumnName,String ascOrDesc);

	public List findByAttribute(DailyCalFormula dailyCalFormula);
	
	public List findByAttributePerPage(DailyCalFormula dailyCalFormula,int amount,int page,String orderByColumnName,String ascOrDesc);

	public String getAttributeNameByColumnName(String columnName);
}
